package www.com.star;

public class DemoTest {
    public static void main(String[] args) {
        Linkedlist linkedlist = new Linkedlist();

        //测试 空
        System.out.println("添加前：");
        linkedlist.show();
        //测试添加
        linkedlist.add(166);
        linkedlist.add(168);
        linkedlist.add(99);
        linkedlist.add(16);
        linkedlist.add(133);
        linkedlist.add(158);
        System.out.println("添加后：");
        linkedlist.show();
        System.out.println("");
        //测试删除尾节点
        Linkedlist.Node numNode = linkedlist.remove(158);
        System.out.println("删除后：");
        linkedlist.show();
    }
}
